export const baseRouter = [
  {
    path: '/',
    name: 'layout',
    component: () => import('@/views/layout/index.vue'),
    redirect: '/home',
    meta: {
      title: '',
      hide: false,
      icon: 'House',
    },
    children: [
      {
        path: '/home',
        name: 'home',
        component: () => import('@/views/home/index.vue'),
        meta: {
          title: '首页',
          hide: false,
          icon: 'House',
        },
      },
    ],
  },
  {
    path: '/screen',
    name: 'screen',
    component: () => import('@/views/screen/index.vue'),
    layout: 'layout',
    meta: {
      title: '数据大屏',
      icon: 'Coordinate',
      hide: false,
    },
  },
  {
    path: '/author',
    name: 'author',
    component: () => import('@/views/layout/index.vue'),
    redirect: '/author/user',
    meta: {
      title: '权限管理',
      hide: false,
      icon: 'Coordinate',
    },
    children: [
      {
        path: '/author/user',
        name: 'user',
        component: () => import('@/views/home/index.vue'),
        meta: {
          title: '用户管理',
          hide: false,
          icon: 'Position',
        },
      },
      {
        path: '/author/role',
        name: 'role',
        component: () => import('@/views/home/index.vue'),
        meta: {
          title: '角色管理',
          hide: false,
          icon: 'Search',
        },
      },
      {
        path: '/author/menu',
        name: 'menu',
        component: () => import('@/views/home/index.vue'),
        meta: {
          title: '菜单管理',
          hide: false,
          icon: 'Setting',
        },
      },
    ],
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login/index.vue'),
    meta: {
      title: '登录',
      hide: true,
    },
  },
  {
    path: '/404',
    name: '404',
    component: () => import('@/views/404/index.vue'),
    meta: {
      title: '404',
      hide: true,
    },
  },
  {
    path: '/:pathMatch(.*)*',
    redirect: '/404',
    meta: {
      title: 'any',
      hide: true,
    },
  },
]
